package com.accp.biz;

import com.accp.pojo.Doctor;

import java.util.List;

/**
 * 用户业务接口
 * @author Administrator
 *
 */
public interface DoctorBiz {
	/**
	 * 查找所有医生（分页多条件）
	 * @param doctor
	 * @return
	 */
	public List<Doctor> selectByPage(String className, int pageNo, int pageSize, Doctor doctor);

	/**
	 * 添加医生
	 * @param doctor
	 * @return
	 */
	public boolean add(Doctor doctor);

	/**
	 * 查找某个医生
	 * @param id
	 * @return
	 */
	public Doctor findByDoctorId(Integer id);

	/**
	 * 更新医生信息
	 * @param doctor
	 * @return
	 */
	public boolean update(Doctor doctor);

	/**
	 * 删除医生
	 * @param doctor
	 * @return
	 */
	public boolean deleteDoctor(Doctor doctor);

	/**
	 * 分页查看下一页
	 * @param line
	 * @param className
	 * @return
	 */
	public int searchRecordsNextPage(int line, String className,Doctor doctor);

}
